import 'package:color_dart/RgbaColor.dart';
import 'package:flutter/material.dart';

class LoginResetPassword extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('')),
      body: Container(
        // padding: EdgeInsets.symmetric(horizontal: 15),
        child: Container(
          color: Colors.white,
          padding: EdgeInsets.symmetric(vertical: 17, horizontal: 30),
          child: Column(
            children: [
              Row(
                children: [
                  Text('重置密码',
                      style: TextStyle(
                          color: rgba(51, 51, 51, 1),
                          fontSize: 25,
                          fontWeight: FontWeight.bold)),
                ],
              ),
              Row(
                children: [
                  Expanded(
                      child: Container(
                    margin: EdgeInsets.fromLTRB(0, 20, 0, 10),
                    decoration: BoxDecoration(
                      border: Border(
                        bottom: BorderSide(
                          width: 1, //宽度
                          color: rgba(235, 235, 235, 1), //边框颜色
                        ),
                      ),
                    ),
                    child: TextField(
                      decoration: InputDecoration(
                          // errorText: '旧密码输入错误',
                          errorStyle: TextStyle(fontSize: 12),
                          errorMaxLines: 1,
                          border: InputBorder.none,
                          hintText: '输入旧密码',
                          hintStyle: TextStyle(color: rgba(163, 163, 163, 1)),
                          labelStyle: TextStyle(color: rgba(163, 163, 163, 1))),
                    ),
                  ))
                ],
              ),
              Row(
                children: [
                  Expanded(
                      child: Container(
                    decoration: BoxDecoration(
                      border: Border(
                        bottom: BorderSide(
                          width: 1, //宽度
                          color: rgba(235, 235, 235, 1), //边框颜色
                        ),
                      ),
                    ),
                    child: TextField(
                      decoration: InputDecoration(
                          // errorText: '新密码输入错误',
                          errorStyle: TextStyle(fontSize: 12),
                          errorMaxLines: 1,
                          border: InputBorder.none,
                          hintText: '输入新密码',
                          hintStyle: TextStyle(color: rgba(163, 163, 163, 1)),
                          labelStyle: TextStyle(color: rgba(163, 163, 163, 1))),
                    ),
                  ))
                ],
              ),
              Row(
                children: [
                  Expanded(
                    child: Container(
                      height: 45,
                      margin: EdgeInsets.only(top: 26),
                      child: FlatButton(
                        child: Text('完成'),
                        color: rgba(42, 125, 250, 1),
                        textColor: rgba(255, 255, 255, 1),
                        shape: BeveledRectangleBorder(
                            borderRadius: BorderRadius.circular(3)),
                        onPressed: () {},
                      ),
                    ),
                  )
                ],
              )
            ],
          ),
        ),
      ),
    );
  }
}
